let path = require('path')
let electron = require('electron')

let app = electron.app

let BrowserWindow = electron.BrowserWindow

let mainWin = null

app.on('ready', () => {

  mainWin = new BrowserWindow({
    width: 400,
    height: 400
  })


  // mainWin.loadFile('index.html')

  mainWin.loadURL(path.resolve(__dirname, 'index.html'))

  mainWin.on('close', () => {
    mainWin = null
  })

})
